<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Controller;

use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Contract\ResponseInterface;

#[Controller]
class CacheController extends Controller
{
    /**
     * IndexController constructor.
     */
    public function __construct()
    {
    }

    #[GetMapping]
    public function refreshCache(ResponseInterface $response)
    {
        $setting = [
            'area_type' => ['住宅', '公寓', '别墅', '其它'],
            'build_type' => [],
        ];

        $return = [
            'code' => 200,
            'msg' => '请求成功',
            'data' => $this->listAreaData,
        ];

        return $response->json($return);
    }
}
